package me.zhengjie.modules.hanzi.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "hanzi")
public class HanziConfig {
    /**
     * 每日推荐汉字数量
     */
    private Integer dailyRecommendCount = 5;
    
    /**
     * 汉字难度等级
     */
    private String[] levels = {"初级", "中级", "高级"};
    
    /**
     * 学习进度状态
     */
    private String[] progressStatus = {"未学习", "学习中", "已掌握"};
    
    /**
     * 缓存配置
     */
    private Cache cache = new Cache();
    
    @Data
    public static class Cache {
        /**
         * 每日推荐汉字缓存时间（秒）
         */
        private long dailyRecommendExpire = 86400;
        
        /**
         * 用户进度缓存时间（秒）
         */
        private long userProgressExpire = 300;
    }
} 